//
//  YZLoopViewCell.m
//  kuaiyi
//
//  Created by jacoy on 16/5/5.
//
//

#import "YZLoopViewCell.h"

@interface YZLoopViewCell ()
@property (nonatomic,strong)UIImageView *iconView;

@end

@implementation YZLoopViewCell
-(instancetype)initWithFrame:(CGRect)frame{
    if (self=[super initWithFrame:frame]) {
        self.iconView=[[UIImageView alloc]init];
        [self addSubview:self.iconView];
        
    }
    return self;
}

-(void)setImage:(UIImage *)image{
    _image=image;
    self.iconView.image = image;
}
-(void)layoutSubviews{
    [super layoutSubviews];
    self.iconView.frame=self.bounds;
}
@end
